{extend name="admin@public/base" /}
{block name="main-content"}
	<div class="page-content">
		<!--主题-->
		<div class="page-header">
			<h1>
				您当前操作
				<small>
					<i class="ace-icon fa fa-angle-double-right"></i>
					修改商品分类
				</small>
			</h1>
		</div>
		<div class="row">
			<div class="col-xs-12">
				<form class="form-horizontal ajaxForm2" name="form0" method="post" action="{:url('admin/Goods/cate_list_runedit')}"  enctype="multipart/form-data">
                  <input type="hidden" name="id" id="id" value="{$info.id}" />
                  <div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 分类名称： </label>
						<div class="col-sm-9">
							<input type="text" name="cate_name" id="cate_name"  placeholder="必填：分类名称"  class="col-xs-10 col-sm-5" value="{$info.cate_name}"  required/>
                                            <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle" id="resone"></span>
											</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 所属上级分类： </label>
						<div class="col-sm-9">
							<select name="parentid"  class="col-sm-3 selector" >
								<option value="0">请选择所属栏目</option>
								{foreach name="menu" item="vo"}
									<option value="{$vo.id}" {if condition="$vo.id eq $info['parentid']"} selected {/if} class="bgc">{$vo.lefthtml}{$vo.cate_name}</option>
								{/foreach}
							</select>
						</div>
					</div>

                    {if condition="config('lang_switch_on')"}
					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 选择语言： </label>
						<div class="col-sm-9">
                            <select name="cate_l"  class="col-sm-3 selector" required>
								<option value="" {if condition="$info['cate_l'] eq ''"}selected{/if}>请选择语言</option>
								<option value="zh-cn"  {if condition="$info['cate_l'] eq 'zh-cn'"}selected{/if}>中文</option>
								<option value="en-us"  {if condition="$info['cate_l'] eq 'en-us'"}selected{/if}>英语</option>
							</select>
						</div>
					</div>
                    {else/}
                     <input type="hidden" name="cate_l" value="{$info.cate_l}" />
                    {/if}

					 


					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 是否开启： </label>
						<div class="col-sm-9" style="padding-top:5px;">
							<input name="cate_open" id="cate_open" value="1" {if condition="$info['cate_open'] eq '1'"} checked="checked"{/if}  class="ace ace-switch ace-switch-4 btn-flat" type="checkbox" />
							<span class="lbl">&nbsp;&nbsp;默认关闭</span>
						</div>
					</div>


					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 排序（从小到大）： </label>
						<div class="col-sm-9">
							<input type="text" name="listorder" id="cate_order" value="{$info.listorder}" class="col-xs-10 col-sm-1" />
						</div>
					</div>


					 <div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 分类类型： </label>
						<div class="col-sm-9">
							<div class="radio">
								<label>
									<input name="cate_type" type="radio" class="ace" id="type1" value="1"   {if condition="$info['cate_type'] eq '1'"} checked="checked"{/if}  />
									<span class="lbl"> 列表页</span>
								</label>
							</div>

							<div class="radio">
								<label>
									<input name="cate_type" id="type2" type="radio" class="ace" value="2" {if condition="$info['cate_type'] eq '2'"} checked="checked"{/if} />
									<span class="lbl"> 自定义页</span>
								</label>
							</div>

							 
						</div>
					</div>

  

					<div class="form-group" id="listtpl">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 列表页模板选择： </label>
						<div class="col-sm-9">
							<select name="cate_listtpl"  class="col-sm-3 selector">
								<option value="">请选择模板</option>
								{foreach name="tpls" item="vo"}
									<option value="{$vo}" {if condition="$info['cate_listtpl'] eq $vo"} selected="selected"{/if} >{$vo}</option>
									{/foreach}
							</select>
						</div>
					</div>


					<div class="form-group" id="newstpl">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 详细页模板选择： </label>
						<div class="col-sm-9">
							<select name="cate_newstpl"  class="col-sm-3 selector">
								<option value="">请选择模板</option>
								{foreach name="tpls" item="vo"}
									<option value="{$vo}" {if condition="$info['cate_newstpl'] eq $vo"} selected="selected"{/if}>{$vo}</option>
								{/foreach}
							</select>
						</div>
					</div>

 
                    <div class="form-group" id="pic_list">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 图标： </label>
						<div class="col-sm-9">
							<input type="hidden" name="checkpic" id="checkpic" value="{$info.cate_img}" />
							<input type="hidden" name="oldcheckpic" id="oldcheckpic" value="{$info.cate_img}" />
							<a href="javascript:;" class="file" title="点击选择所要上传的图片">
								<input type="file" name="file0" id="file0" multiple="multiple"/>
								选择上传文件
							</a>
							&nbsp;&nbsp;<a href="javascript:;" onclick="return backpic('{$info.cate_img|get_imgurl}');" title="还原修改前的图片" class="file">
							撤销上传
							</a>

							<div><img src="{$info.cate_img|get_imgurl}" height="70" id="img0" ></div>
						</div>
					</div>
                    
                    



					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> SEO标题： </label>
						<div class="col-sm-9">
							<input type="text" id="cate_title" name="cate_seo_title" value="{$info.cate_seo_title}" placeholder="SEO标题"  class="col-xs-10 col-sm-5" />

						</div>
					</div>


					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> SEO关键字： </label>
						<div class="col-sm-9">
							<input type="text" id="cate_key" name="cate_seo_key"  placeholder="SEO关键字" value="{$info.cate_seo_key}"  class="col-xs-10 col-sm-5" />
                                            <span class="help-inline col-xs-12 col-sm-7">
												<span class="middle">每个关键字用英文 , 号隔开</span>
											</span>
						</div>
					</div>


					<div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> SEO描述： </label>
						<div class="col-sm-9">
							<input type="text" id="cate_des" name="cate_seo_des"  placeholder="SEO描述"  value="{$info.cate_seo_des}"  class="col-xs-10 col-sm-10" />
						</div>
					</div>
                    
                    <div class="form-group">
						<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 描述内容 </label>
						<div class="col-sm-9">
							<script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
							<script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript"></script>
							<textarea name="cate_content" rows="100%" style="width:100%" id="myEditor">{$info.cate_content}</textarea>
							<script type="text/javascript">
								var editor = new UE.ui.Editor();
								editor.render("myEditor");
							</script>
						</div>
					</div>

					<div class="clearfix form-actions">
						<div class="col-md-offset-3 col-md-9">
							<button class="btn btn-info" type="submit">
								<i class="ace-icon fa fa-check bigger-110"></i>
								修 改
							</button>

							 
						</div>
					</div>
				</form>
			</div>
		</div>

	</div><!-- /.page-content -->
{/block}
{block name="scripts"}
	 
{/block}